package com.situ.shoplook.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//此注解可以指定父目录，会递归扫描子目录
@ComponentScan(basePackages = {"com.situ.shoplook"})
//此注解只可指定拥有dao接口的目录，不能指定父目录
@MapperScan(basePackages = {"com.situ.shoplook.dubbo.dao", "com.situ.shoplook.common.dao","com.situ.shoplook.admin.dao"})
public class ShoplookAdminWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShoplookAdminWebApplication.class, args);
    }
}
